<?php
namespace App\Models;

use CodeIgniter\Model;
class Places extends Model
{
    protected $table = 'places';
    protected $allowedFields = ['name', 'description', 'link', 'image'];
    protected $origin = WRITEPATH . 'data/placesData.XML';
    protected $keyField = 'id';
    protected $validationRules = [
        'name' => 'required|min_length[2]|max_length[50]',
        'description' => 'required',

    ];


}
